const plugins = [];
module.exports = ({file}) => {
	let remUnit;
	if (file && file.dirname && file.dirname.indexOf("mand-mobile") > -1) {
		remUnit = 100;
	} else {
		remUnit = 37.5;
	}
	plugins.push(
		require("postcss-pxtorem")({
			rootValue: remUnit,
			propWhiteList: [],
			minPixelValue: 2
		})
	);
	return {
		plugins: plugins
	};
};
